package com.example.mscloud.service.impl;

import com.example.mscloud.common.entities.Payment;
import com.example.mscloud.common.entities.result.CommonResult;
import com.example.mscloud.service.FeignOrderService;
import org.springframework.stereotype.Component;

@Component
public class FeignOrderFallbackServiceImpl implements FeignOrderService {
    @Override
    public CommonResult<Payment> normalPaymentInfo(Long id) {
        return new CommonResult<>(500, "通配降级方法，，，normalPaymentInfo", null);
    }

    @Override
    public CommonResult<Payment> timeoutPaymentInfo(Long id) {
        return new CommonResult<>(500, "通配降级方法，，，timeoutPaymentInfo", null);
    }

    @Override
    public CommonResult<Payment> exceptionPaymentInfo(Long id) {
        return new CommonResult<>(500, "通配降级方法，，，exceptionPaymentInfo", null);
    }
}
